<h2><?php echo $this->viewTranslater('Benutzer') ?></h2>
<?php //echo $this->partial('search.phtml', array(''), new Backend_Form_Search())?>
<?php if(isset($this->companySelect)){ echo $this->companySelect; } ?>
<?php if (isset($this->message)) { ?> <p class="error"><?php echo $this->message ?></p> <?php }?>

<?php if(0 < $this->paginator->getTotalItemCount()){ ?>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml', array('search' => $this->search)); ?>
<table cellpadding="0" cellspacing="0" width="100%">
    <colgroup>
        <col width="40" />
        <col width="170" />
        <col width="170" />
        <col width="289" />
        <col width="200" />
        <col width="70" />
    </colgroup>
    <thead>
        <tr>
            <th align="left"><?php echo $this->viewTranslater('ID') ?></th>
            <th align="left"><?php echo $this->viewTranslater('Vorname') ?></th>
            <th align="left"><?php echo $this->viewTranslater('Nachname') ?></th>
            <th align="left"><?php echo $this->viewTranslater('E-Mail') ?></th>
            <th align="left"><?php echo $this->viewTranslater('Registrierungsdatum') ?></th>
            <th align="right" class="right" style="padding: 5px 10px 5px 0"><?php echo $this->viewTranslater('Aktionen') ?></th>
        </tr>
    </thead>
    <tbody>
    <?php foreach($this->paginator as $user) {?>
        <tr class="<?php echo $this->cycle(array("even", "odd"))->next(); ?>">
            <td><?php if(isset($user['be_users_id'])){ echo $user['be_users_id'];} ?></td>
            <td><?php if(isset($user['be_users_firstname'])){ echo $user['be_users_firstname'];} ?></td>
            <td><?php if(isset($user['be_users_lastname'])){ echo $user['be_users_lastname'];} ?></td>
            <td><?php if(isset($user['be_users_email'])){ echo $user['be_users_email'];} ?></td>
            <td><?php if(isset($user['be_users_created'])){ echo $this->Date()->getDateGerman($user['be_users_created']);} ?></td>
            <td align="right" class="right">
                <a href="<?php echo $this->baseUrl('backend/user/delete/id/'.$user['be_users_id']); ?>" class="iconDelete right" title="löschen"></a>
                <a href="<?php echo $this->baseUrl('backend/user/lock/id/'.$user['be_users_id']); ?>" class=" <?php echo ($user['users_hidden'] == 1)?'iconUnlock':'iconLock'; ?> right" title="sperren"></a>
                <a href="<?php echo $this->baseUrl('backend/user/edit-password/id/'.$user['be_users_id']); ?>" class="iconPassword right" title="Passwort ändern"></a>
            </td>
        </tr>
    <?php } ?>
    </tbody>
</table>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml', array('search' => $this->search)); ?>
<?php } ?>